package com.k3cloud.service.impl;


import com.k3cloud.mapper.ErpPartAlternativeMapper;
import com.k3cloud.service.ErpPartAlternativeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

@Service
public class ErpPartAlternativeServiceImpl implements ErpPartAlternativeService {
    @Autowired
    ErpPartAlternativeMapper erpPartAlternativeMapper;

    @Override
    public List<Map<String, Object>> getPartDetailsBylinkOid(BigInteger linkOid) {
        return erpPartAlternativeMapper.getPartDetailsBylinkOid(linkOid);
    }

    @Override
    public List<Map<String, Object>> getPartDetailsBySubstituteLinkOid(BigInteger linkOid) {
        return erpPartAlternativeMapper.getPartDetailsBySubstituteLinkOid(linkOid);
    }

    @Override
    public List<Map<String, Object>> getErpAlternative(String erp_process_type,List<String> numbers) {
        return erpPartAlternativeMapper.getErpAlternative(erp_process_type,numbers);
    }

    @Override
    public List<Map<String, Object>> getErpBom(List<String> numbers) {
        return erpPartAlternativeMapper.getErpBom(numbers);
    }
}
